package day13;

import java.util.ArrayList;

public class sql {
	 ArrayList al=new ArrayList();
	 public void insert(Object o){
		 al.add(o);
		// al.add(30, element)
	 }
	 public void select(int i){	
		 System.out.print(al.get(i));
	 }
	 public void selectall(){
		 for(int i=0;i<al.size();i++){
			 System.out.print(al.get(i));
		 }
	 }
	 public void update(int i,Object o){
		 al.set(i, o);
	 }
	 public void delete(int i){
		 al.remove(i);
	 }
	 public void insert(int i,Object o){
		 al.add(i, o);
	 }
	}
/*Iterator<String> it = al.iterator()
it.hasNext() it.next()*/
